CHECK_BUILD_MARKER()

set(fnote_SRCS
    fnote.cpp
    mainwindow.cpp
)

set(fnote_MOCS
    mainwindow.h
)

set(fnote_RCCS
    fnote.qrc
)

QT4_ADD_RESOURCES(fnote_RCC_SRCS
    ${fnote_RCCS}
)
QT4_WRAP_CPP(fnote_MOC_SRCS
    ${fnote_MOCS}
)

add_executable(fnote
    ${fnote_SRCS}
    ${fnote_MOC_SRCS}
    ${fnote_RCC_SRCS}
)

include_directories(fnote
    ${QT_INCLUDE_DIR}
    ${CMAKE_BINARY_DIR}
    ${CMAKE_SOURCE_DIR}/src
)
target_link_libraries(fnote
    ${QT_LIBRARIES}
)

install(
    TARGETS fnote
    DESTINATION bin
)